﻿using UnityEngine;
using System.Collections;
using System.Collections.Generic;
using TTGame;
using CinemaDirector;

/*
 * BuffCancelTrigger
 *
 * 取消Buff，相对于BuffTrigger。
 *
 *
 * 依赖：
 *
 * ！不写重复代码！
 * @author TTun
 * @date 8/3/2017 9:05:01 PM
 */
namespace TTGameEngine {

[CutsceneItemAttribute("LT Trigger", "LT Buff Cancel Trigger", CutsceneItemGenre.ActorItem)]
public class BuffCancelTrigger : CinemaActorEvent {
    public int buffID = 0;

    public override void Trigger(GameObject actor) {
        //取消绑定到技能的Buff
        this.GetSkill().SkillLogicHandler.CancelSkillBuff(buffID);
    }
}

}
